package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.Comment;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 操作评论相关数据接口
 */
public interface CommentMapper extends BaseMapper<Comment> {

    int updateById(Comment comment);

    Comment selectById(Integer id);

    List<Comment> selectAll(Comment comment);

    @Select("select * from comment where business_id = #{id}")
    List<Comment> selectByBusinessId(Integer id);

}